import request from '@/utils/request'

// 查询购货入库列表
export function listRuku(query) {
  return request({
    url: '/system/ghrk/list',
    method: 'get',
    params: query
  })
}

// 查询购货入库详细
export function getRuku(id) {
  return request({
    url: '/system/ghrk/' + id,
    method: 'get'
  })
}

// 新增购货入库
export function addRuku(data) {
  return request({
    url: '/system/ghrk',
    method: 'post',
    data: data
  })
}

// 修改购货入库
export function updateRuku(data) {
  return request({
    url: '/system/ghrk',
    method: 'put',
    data: data
  })
}

// 删除购货入库
export function delRuku(id) {
  return request({
    url: '/system/ghrk/' + id,
    method: 'delete'
  })
}

export function listSpxx(query){
  return request({
    url: '/system/ghrk/SpList',
    method: 'get',
    params: query
  })
}
